#ifndef JSTYPEBRIDGE_H_
#define JSTYPEBRIDGE_H_

#include <jni.h>
#include "Phnqlets.h"

jobject uth_to_j_val(JNIEnv *env, UTHValue *uthVal);
jobject uth_to_j_object(JNIEnv *env, UTHObject *uthObj);
jobject uth_to_j_array(JNIEnv *env, UTHArray *uthArr);
jobject uth_to_j_number(JNIEnv *env, UTHNumber *uthNum);
jobject uth_to_j_string(JNIEnv *env, UTHString *uthStr);
jobject uth_to_j_undefined(JNIEnv *env);

UTHValue* j_to_uth_val(JNIEnv *env, jobject j);
UTHValue* j_to_uth_string(JNIEnv *env, jclass jCls, jobject j);
UTHValue* j_to_uth_number(JNIEnv *env, jclass jCls, jobject j);
UTHValue* j_to_uth_object(JNIEnv *env, jclass jCls, jobject j);
UTHValue* j_to_uth_array(JNIEnv *env, jclass jCls, jobject j);

#endif // JSTYPEBRIDGE_H_
